<template>
  <mk-content>
    <div class="header-default">
      <div class="logo">
        <img width="100" src="https://static.aimeike.tv/assets/img/logo/logo.png" alt="">
      </div>
      <div class="menu" style="display: flex;align-items: center">
        <el-menu router  :default-active="$route.path" class="el-menu-demo" mode="horizontal">
          <el-menu-item index="/home">首页</el-menu-item>
          <el-submenu index="2">
            <template slot="title">视频模版</template>
            <el-menu-item index="2-1">选项1</el-menu-item>
            <el-menu-item index="2-2">选项2</el-menu-item>
            <el-menu-item index="2-3">选项3</el-menu-item>
          </el-submenu>
          <el-menu-item index="4">
            会员特权
          </el-menu-item>
          <el-menu-item index="/login">
            登录
          </el-menu-item>
        </el-menu>
        <router-link to="/login?type=1">
          <el-button style="margin-left: 20px;">注册</el-button>
        </router-link>
      </div>
      <el-dropdown  class="openlist" trigger="click">
        <el-button>
          <i class="el-icon-s-operation"></i>
        </el-button>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item icon="el-icon-plus">
            首页
          </el-dropdown-item>
          <el-dropdown-item icon="el-icon-circle-plus">视频模版</el-dropdown-item>
          <el-dropdown-item icon="el-icon-circle-plus-outline">会员特权</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
    </div>
  </mk-content>
</template>

<script>
export default {
  name: "defaultHeader"
}
</script>

<style scoped>
.header-default{
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.openlist{
  display: none;
}
@media screen and (max-width: 650px){
  .menu{
    display: none !important;
  }
  .openlist{
    display: block;
  }
}
</style>
